
<!--
/**************************************************
* @ ordermanufacturedetail.jsp
*
* Copyright   2005 Hitrust Technology Inc.
* Developed by SDC, Hitrust.
* All Rights Reserved.
*
* Modify History:
*  v1.00, 2006/02/15, Jenny Li
*  1) first release
/**************************************************
-->
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="../../common.jsp" %>
<%@ taglib uri="/page.gs.hitrust.com/taglibs/page" prefix="page"%>

<html>
<head>
<title>供应商浏览</title>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="<%=root%>/css/css.css" type=text/css rel=stylesheet>
<SCRIPT language="JavaScript" src="<%=root%>/js/common.js"></SCRIPT>
<%

//	ResultProcess tGSProvider = (ResultProcess)request.getAttribute("ordermanufacture");
	ArrayList tList = (ArrayList)request.getAttribute("ordermanufacture");
	GSOrderBean tBean = (GSOrderBean)request.getAttribute("orderbean");
%>
<script language="JavaScript">
	var counter;
	function process(val){
		if(val == 'F'){
			ordermanufacturevdetail.action = "<%=response.encodeURL(root+"/A100301.do")%>";
		}else if(val == 'T'){
				if(confirm("是否确定提交？")){
					ordermanufacturevdetail.action = "<%=response.encodeURL(root+"/A100305.do")%>";			
				}else{
					return false;
				}
		}
		ordermanufacturevdetail.submit();
	}

</script>
</head>
<body BGCOLOR="#f2f2f2"	text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="ordermanufacturevdetail" method="post" >
<input type="hidden" name="orderId" value="<%=tBean.getGs_order_tempid() %>">
<p><br></p>
<br>
	<center>
    <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr>
    <td>
    <table class=bg_table id=tableId	cellspacing=1 cellpadding=2 width=100% align=center border=0>
    <tbody>
    <tr class=bg_column height="20"><td class="bg_column" align="center" colspan=14>待提交订单总体信息&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;订单状态：<%=GSBaseManager.getOrderStatusName(tBean.getGs_order_status())%></td></tr>
	<tr class=bg_row_even height="20">
	<td colspan=2 class="bg_column" width="20%" align="center">订单编号</td>
	<td class="top" colspan=5 width="30%"><div class="txt_content"><%=tBean.getGs_order_tempid()%></div></td>
	<td class="bg_column" colspan=2 width="20%" align="center">订单种类</td>
	<td colspan=5 class="top"><div class="txt_content"><%=GSBaseManager.getOrderCategoryName(tBean.getGs_order_category())%></div></td>
	</tr>
	<tr class=bg_row_even height="50">
	<td colspan=2 class="bg_column" width="20%" align="center">备注</td>
	<td class="top" colspan=12><div class="txt_content"><%=tBean.getGs_notes()%></div></td>	
	</tr>
	</tbody>
	</table>
	</td>
	</tr>
<%
	if(tList != null){
%>
		<tr>
			<td>
            	<table class=bg_table id=tableId	cellspacing=1 cellpadding=2 width=100% align=center border=0>
                    <tbody> 
                    <tr class="bg_column" height=20> 
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">产品编号</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">产品名称</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">产品单价</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">订货数量</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">产品总价</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">送货日期</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">送货时间</div>
						</td>																																				
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">订货单位</div>
						</td>																	
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">送货地址</div>
						</td>											
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">订货联系人</div>
						</td>											
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">订货联系电话</div>
						</td>											
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">配送方式</div>
						</td>											
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">结算方式</div>
						</td>											
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">供应商</div>
						</td>																																																										
					</tr>
					<%
						if(tList != null && tList.size() > 0){
						for(int i=0; i<tList.size(); i++){
							String[] tStr = (String[])tList.get(i);
							String tTempStr="";
							if(i%2==0){
								tTempStr="class=\"bg_row_odd\"";
							}else {
								tTempStr="class=\"bg_row_even\"";
							}
					%>
							<tr <%=tTempStr%> height=20>
					
								</td>	
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[1]%>
									</div>
								</td>								
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[2]%>
									</div>
								</td>
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[3]%>
									</div>
								</td>								
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[4]%>
									</div>
								</td>								
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[5]%>
									</div>
								</td>															
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[6]%>
									</div>
								</td>																
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[7]%>
									</div>
								</td>				
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[8]%>
									</div>
								</td>				
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[9]%>
									</div>
								</td>				
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[10]%>
									</div>
								</td>				
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[11]%>
									</div>
								</td>				
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[12]%>
									</div>
								</td>				
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[13]%>
									</div>
								</td>				
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[14]%>
									</div>
								</td>																																																																																					
							</tr> 
							
					<%	
							}
						}else{
					%>
							<font color="red">没有符合条件的产品</font>
					<%
						}
					%>
					</tbody>
				</table>
			</td>
		</tr>

<%		
	}
%>
	</table>
	</center>
</form>
    <p align="center">  
    <input type="button" name="提交" value="提交" onclick="process('T')">
		<!-- <input type="image" src="images/button/dayin.gif" width="58" height="24" class="box" onclick="process('P')"/> -->&nbsp;
		<input type="image" src="images/button/fanhui.gif" width="58" height="24" class="box" onclick="process('F')"/>&nbsp;		
    </p>
</body>
</html>